import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import zking.entity.User;
import zking.service.UserService;

import java.util.List;

public class test {
    @Test
    public void text1(){

        ApplicationContext context = new ClassPathXmlApplicationContext("Spring.xml");
        UserService userService = context.getBean(UserService.class);
        List<User> user = userService.findUser();
        user.forEach(System.out::println);
    }
}

